<template>
  <div class="box">
    <div class="box-left">
      <div><router-link to="/main/goods" :class="{active:$route.path === '/main/goods'}">商品管理</router-link></div>
      <div><router-link to="/main/person" :class="{active:$route.path === '/main/person'}">人员管理</router-link></div>
    </div>
    <div class="box-right">
      二级路由的出口：
      <router-view></router-view>
      
    </div>
  </div>
</template>

<script>

export default {
  
  
}
</script>

<style scoped>
.box{
  display: flex;

}
.box-left{
  width: 200px;
  height: 500px;
  background-color: aqua;

}
.box-right{
  flex: 1;
  height: 500px;
  background-color: blue;
}
.active{
  color: yellow;
}
</style>